<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:sf="http://www.springframework.org/tags/faces"	  			
				template="/WEB-INF/layouts/standard.xhtml">

<ui:define name="content">

<div class="section">
	<h2>Detalles de la Obra</h2>
	<h:form id="hotel">
		<fieldset>
			<div class="field">
				<div class="label">Nombre:</div>
				<div class="output">#{obra.name}</div>
			</div>
			<div class="field">
				<div class="label">Direccion:</div>
				<div class="output">#{obra.address}</div>
			</div>
			<div class="field">
				<div class="label">Ciudad:</div>
				<div class="output">#{obra.city}</div>
			</div>
			<div class="field">
				<div class="label">Provincia:</div>
				<div class="output">#{obra.state}</div>
			</div>
			<div class="field">
				<div class="label">CP:</div>
				<div class="output">#{obra.zip}</div>
			</div>
			<div class="field">
				<div class="label">Pais:</div>
				<div class="output">#{obra.country}</div>
			</div>
		    <div class="field">
		        <div class="label">Precio de Licitacion:</div>
		        <div class="output">
		            <h:outputText value="#{obra.price}">
		                <f:convertNumber type="currency" currencySymbol="$"/>
		            </h:outputText>
		        </div>
		    </div>
		    <div class="field">
		        <div class="label">Saldo:</div>
		        <div class="output">
		            <h:outputText value="#{obra.saldo}">
		                <f:convertNumber type="currency" currencySymbol="$"/>
		            </h:outputText>
		        </div>
		    </div>
		    <div class="field">
		        <div class="label">Categorias : </div>
		        <div class="output">
          			<sf:commandButton id="categoriasDetails" action="categoriasDetails" value="Ver Categorias"/>
		        </div>
		    </div>
			<div class="buttonGroup">
				<h:commandButton id="cancel" action="cancel" value="Volver"/>
			</div>
		</fieldset>
	</h:form>
</div>

</ui:define>
</ui:composition>